Why does my loop return an empty list error when I pass it a copied list but does not error with an

visit shbcf.ru